<?php
$_GET['userid'] = $__userinfo['userid'];

$oAddress = new Address();
$list = $oAddress->get_all('*', $_GET, array('id' => 'ASC'));
if(!empty($list)){
	foreach($list['list'] as $key => $address){
		$address['besttime'] = Statics::$delivery_date_arr[$address['besttime']];
		$list['list'][$key] = $address;
	}
	$vars['list'] = $list['list'];
	$vars['total'] = count($list['list']);
}
?>